package dissertation.common.utils;

import com.intellij.openapi.application.ApplicationManager;

/**
 * Write action needed by the open api
 */
public class WriteAction implements Runnable {
    private Runnable command;
    public WriteAction(Runnable command) {
        this.command = command;
    }

    @Override
    public void run() {
        ApplicationManager.getApplication().runWriteAction(command);
    }
}
